package com.ruoyi.common.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = "sub";

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "hcx_sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "hcx_sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * 资源映射路径 前缀
     */
    public static final String REDIS_LOCK_KEY = "redis_lock:";
    /**
     * 每次获取验证码的 参数key
     */
    public static final String SYS_AUTHCODE = "sys.authcode";
    /**
     * 短信 key
     */
    public static final String SMS_TIMES_KEY = "sms_times:";
    /**
     * ip地址
     */
    public static final String SMS_IP_ADDRESS_KEY = "sms_ip_address";
    /**
     * 过期时间，24小时
     */
    public static final long EXPIRE_HOUR = 24;

    /**
     * 数字常量
     */
    public static final String ZERO = "0";
    public static final String ONE = "1";
    public static final String TWO = "2";
    public static final String THREE = "3";
    public static final String FOUR = "4";
    public static final String FIVE = "5";
    public static final String SIX = "6";
    public static final String SEVEN = "7";

    /**
     * 图片  官方微信，手机号，网站，关注二维码
     */
    public static final String OFFICIAL_PICURL = "hcx.app.picurl";
    public static final String OFFICIAL_WECHAT = "hcx.app.wechat";
    public static final String OFFICIAL_PHONE = "hcx.app.phone";



    /**
     * 我的钱包-提现手续费比例、
     */
    public static final String WITHDRAW_FEE_PROPORTION = "withdraw.serveice.fee.proportion";


    // 商家角色
    public static final Long merchantRoleId = 101L;
    /**
     * 登录用户 记录当前用户userId对应uuid
     */
    public static final String LOGIN_USERID_KEY = "login_userId:";

    /**
     * 二维码LOGO地址
     */
    public static final String QRCODE_LOGO_ADDRESS = "hcx_logo";

    /**
     * 二维码存放目录
     */
    public static final String QRCODE_DESC_ADDRESS = "qrcode:dest:address";


    /**
     * 邀请地址
     */
    public static final String YAOQINGDIZHI = "shareRegisterPageUrl";

    /**
     * 推广人级别
     */
    public static final String TUIGUANGRENSHU = "tuiguang_num";

    /**
     * 推广单价
     */
    public static final String TUIGUANGDANJIAN = "tuiguang_price";


    /**
     * 订单有效期
     */
    public static final String HCXORDERVALID = "hcx_order_valid";

    /**
     * 银行卡列表
     */
    public static final String BANK_LIST = "hcx_card_bank";

    /**
     * 同一个ip获取验证码次数
     */
    public static final String AUTH_IP_CODE_NUM = "auth:ip:code:num";

    public static final String AUTH_CODE_EXPIRE_TIP = "验证码已过期";
    public static final String AUTH_CODE_ERROR_TIP = "验证码不正确";
    public static final String ERROR_PHONE_NUM_TIP = "不是合法手机号，请检查";


    // 默认密码
    public static final String password = "123456";

    // 商品订单分佣比例
    public static final String hcx_product_order_bili = "hcx_product_order_bili";

    // 购买洗车卡奖励
    public static final String hcx_carwash_price = "hcx_carwash_price";

    // 购买洗车卡农产品奖
    public static final String hcx_agriculture_price = "hcx_agriculture_price";

    // 洗车卡核销门店所的收入
    public static final String hcx_xckhx_mdsr = "hcx_xckhx_mdsr";

}
